package com.kust.smarthome.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kust.smarthome.web.model.DeviceState;
import com.kust.smarthome.web.model.Lamp;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author iAuzre
 * @since 2021-06-28
 */
public interface ILampService extends IService<Lamp> {
    int insert(Lamp lamp);

    List<Lamp> getByUserId(Integer userId);

    List<DeviceState> findOperationList(Integer deviceId, Integer typeId);

    boolean setupdate(Integer id);
}
